package com.knight.study.patterns.tujie.proxy;

/**
 * @Author knight
 * @Date 2024/9/12 17:16
 */

public class ProxyMains {
    public static void main(String[] args) {
        Printable p = new PrinterProxy("Alice");
        System.out.println("现在的名字是" + p.getPrinterName() + ".");
        p.setPrinterName("Bob");
        System.out.println("现在的名字是" + p.getPrinterName() + ".");
        p.print("Hello,world.");
    }
}
